package cn.yzfy.framework.starter.common.enums;

import lombok.ToString;

/**
 * @Author: 一朝风月
 * @Date: 2025/8/6 17:03
 * @Code 珍琅Code 研发
 * @Version: 1.0
 * @Description 状态枚举
 */
@ToString
public enum StatusEnum {
    /**
     * 成功
     */
    SUCCESS(0),

    /**
     * 失败
     */
    FAIL(1);

    private final Integer statusCode;

    StatusEnum(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public Integer code() {
        return this.statusCode;
    }

    public String strCode() {
        return String.valueOf(this.statusCode);
    }
}
